﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LanguageDetector
{
    public class BiGramStat
    {
        public BiGram BiGram { get; set; }

        int _id;
        public int ID
        {
            get { return _id; }
            set 
            {
                if (value != _id)
                {
                    _id = value > 0 ? value : 0;
                    IsDirty = true;
                }
            }
        }

        int _count = 0;
        public int Count
        {
            get { return _count; }
            set 
            {
                if (value != _count)
                {
                    _count = value > 0 ? value : 0;
                    IsDirty = true;
                }
            }
        }

        int _lang;
        public int LanguageID
        {
            get { return _lang; }
            set 
            {
                if (value != _lang)
                {
                    _lang = value > 0 ? value : 0;
                    IsDirty = true;
                }
            }
        }

        public bool IsDirty { get; set; }
    }
}
